<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
<body>
<div class="container" id="page">
	<div id="header">
		<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->
		<?php
                     $this->widget('application.extensions.mbmenu.MbMenu',array(
			'items'=>array(
				   array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
				   array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('site/logout'), 'visible'=>!Yii::app()->user->isGuest),
                                   array('label'=>'Usuário Admin', 'url'=>array('index'),'visible'=>!Yii::app()->user->isGuest,
                                     'items'=>array(
                                             array('label'=>'Usuários', 'url'=>array('user/index'),),
                                             array('label'=>'Formulários',
                                                     'items'=>array(
                                                          array('label'=>'Centros de Custo', 'url'=>array('cad_forma/create'),),
                                                          array('label'=>'Formas de pagamento', 'url'=>array('cad_custo/create'),),
                                                       ),                                                
                                                  ),                                                                            
                                             array('label'=>'Associação', 'url'=>array('cad_associacao/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_associacao/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_associacao/admin'),),
                                                          array('label'=>'Novo Debito', 'url'=>array('cad_entradas/create'),),                                                         
                                                          array('label'=>'Baixas', 'url'=>array('cad_entradas/baixa'),),                                                         
                                                       ),
                                                  ),
                                             array('label'=>'Gestores', 'url'=>array('cad_gestor/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_gestor/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_gestor/admin'),),
                                                       ),
                                                  ),                                         
                                             array('label'=>'Parceiros', 'url'=>array('cad_parceiros/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_parceiros/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_parceiros/admin'),),
                                                       ),
                                                  ),
                                                ),
                                             ),           
                            
                                  array('label'=>'Polo', 'url'=>array('index'),'visible'=>!Yii::app()->user->isGuest,
                                    'items'=>array(
                                             array('label'=>'Polos', 'url'=>array('cad_polo/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_polo/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_polo/admin'),),
                                                       ),
                                                  ),
                                             array('label'=>'Cursos', 'url'=>array('cad_cursos/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_cursos/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_cursos/admin'),),
                                                       ),
                                                  ),
                                             array('label'=>'Periodos', 'url'=>array('cad_periodo/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_periodo/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_periodo/admin'),),
                                                       ),
                                                  ),
                                             array('label'=>'Turmas', 'url'=>array('cad_turma/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_turma/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_turma/admin'),),
                                                       ),
                                                  ),
                                                ),
                                              ),  
                                         
                                  array('label'=>'Usuário EAD', 'url'=>array('index'),'visible'=>!Yii::app()->user->isGuest,
                                    'items'=>array( 
                                             array('label'=>'Professores', 'url'=>array('cad_professor/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_professor/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_professor/admin'),),
                                                       ),
                                                  ),                                        
                                             array('label'=>'Alunos', 'url'=>array('cad_aluno/index'),
                                                     'items'=>array(
                                                          array('label'=>'Novo', 'url'=>array('cad_aluno/create'),),
                                                          array('label'=>'Gerenciar', 'url'=>array('cad_aluno/admin'),),
                                                       ),
                                                  ),
                                             array('label'=>'Logs', 'url'=>array('cad_log/index'),                      ),
                                      ),
                                   ),
                            ),
                     ));
                ?>

	<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
	)); ?><!-- breadcrumbs -->

	<?php echo $content; ?>

	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by Gestão.<br/>
		All Rights Reserved.<br/>
		<?php //echo Yii::powered(); ?>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>